home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _A3E4DFDFC14B472EBB2AEAC74FBA3285 < prev    next >
Encoding:
Text File  |  2000-03-27  |  2.2 KB  |  57 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4. /////////////////////////////////////////////////
  5. // THIS SCRIPT IS THE HOSTAGE GETTING PUSHED IN FRONT OF THE TRAIN
  6.  
  7.  
  8. local entity train2 // the train that moves
  9. local entity trainvictim1 // the guy getting pushed in front of the train
  10. local entity pusher // the guy who does the pushing
  11. local entity shake1 // the shake when the train derails
  12. local entity trainexplosion // the explosion when the train derails
  13. local entity brokensign // the func_wall sign that gets triggered on after the train derails
  14. local entity trainsmokegen // the smokegen that gets triggered by the train
  15. local int health
  16. local int sig1
  17.  
  18. train2 = find entity with targetname "train2"
  19. trainvictim1 = find entity with targetname "trainvictim1"
  20. pusher = find entity with targetname "pusher"
  21. shake1 = find entity with targetname "shake1"
  22. brokensign = find entity with targetname "brokensign"
  23. trainexplosion = find entity with targetname "trainexplosion"
  24. trainsmokegen = find entity with targetname "trainsmokegen"
  25.  
  26. health = pusher.health
  27.  
  28. // animate entity trainvictim1 performing action STD_XAFRAIDSHAKE_N_N_N // the hostage cowering
  29.  
  30. if health <= 0
  31.  
  32.    use entity train2 // makes the train move 
  33.    animate entity trainvictim1 performing action SCRIPT_RELEASE    
  34.    exit
  35. endif
  36.  
  37. animate entity pusher performing action STD_F_FWD_S_2 targeting entity trainvictim1  // the pusher guy pistol whiping the guy
  38. animate entity pusher performing action SCRIPT_RELEASE
  39. animate entity trainvictim1 performing action STD_SBLOWN_2BK_N_N by moving [64, 0, 0] // the animation of the guy getting pushed onto the tracks
  40. play sound "Speech/tsr1/npc/eb9-11.adp" for entity trainvictim1 at volume 0.9
  41. wait 1.25 seconds
  42.  
  43. use entity train2 // makes the train move 
  44. wait .75 seconds
  45. remove entity trainvictim1  // gets the guy out of the way so the train doesnt get stuck
  46.  
  47. wait 3 seconds
  48. // use entity brokensign // triggers the sign in
  49. use entity shake1 // causes the screen to shake
  50. use entity trainexplosion // causes the explosions on the tracks.
  51. rotate entity train2 by [-10, -5, 0] at 150 speed signaling sig1
  52. // use entity trainsmokegen // triggers the smokegen
  53. wait for all clearing sig1
  54.  
  55.  
  56.  
  57. exit